<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/layui/layui.js"></script>
    <link rel="stylesheet" href="../js/layui/css/layui.css"/>
</head>
<body>
    <table class="layui-hide" id="companyTable" lay-filter="companyFilter"></table>
</body>
<script>
    var table;
    layui.use(['table'], function() {
        table = layui.table;
        $ = layui.jquery;
        table.render({
            elem: '#companyTable',
            fit: true,
            url: '../company/companyMessage', //数据接口
            cols: [
                [ //表头
                    {type:'checkbox', fixed:'left'},
                    {field:'userName', title:'账号', align: 'center'},
                    {field:'tel', title:'绑定手机', align: 'center'},
                    {field:'comName', title:'公司名称', align: 'center'},
                    {field:'address', title:'公司地点', align:'center'},
                    {field:'zhiZhao', title:'公司执照', align:'center', templet:function(data){
                        return '<img src="'+data.zhiZhao+'" width="60px" height="60px">'
                    }},
                    {field:'zhiZhaoHao', title:'执照编号', align:'center'},
                ]
            ]
        });
    })

</script>
</html>